<template>
  <div>
    <h2>我是儿子 -- {{goods}}</h2>
    <B></B>
  </div>
</template>

<script>
import { inject } from 'vue'

import B from './B.vue'
export default {
  components: {
    B
  },
  setup() {
    const goods = inject('goods')
    return {
      goods
    }
  }
}
</script>

<style>

</style>
